package com.sds.sweng.swat.miplatform.ui.design.layouts;

import org.eclipse.draw2d.GridLayout;

public class EasyGridLayout {

	public static GridLayout create(int numColums) {
		return create(numColums, true);
	}

	public static GridLayout create(int numColums, boolean makeColumnsEqualWidth) {
		return create(numColums, makeColumnsEqualWidth, 0, 0, -1, -1);
	}

	public static GridLayout create(int numColumns, boolean makeColumnsEqualWidth, int marginWidth, int marginHeight, int horizontalSpacing, int verticalSpacing) {
		GridLayout layout = new GridLayout(numColumns, makeColumnsEqualWidth);
		layout.marginWidth = marginWidth;
		layout.marginHeight = marginHeight;
		layout.horizontalSpacing = horizontalSpacing;
		layout.verticalSpacing = verticalSpacing;

		return layout;
	}

}
